package work.xiaohong.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author xiaohong
 * @version 1.0
 * @date 2021/10/21 0021 10:47
 * @description 响应状态码
 */
@Getter
@AllArgsConstructor
public enum StatusCode {

    OK(2000,"成功"),
    ERROR(20001,"失败"),
    LOGINERROR(20002,"用户名或密码错误"),
    ACCESSERROR(20003,"权限不足"),
    REMOTEERROR(20004,"远程调用失败"),
    REPERROR(20005,"重复操作"),
    NOTFOUNDERROR(20006,"没有对应的数据"),
    UNSTART(20008,"服务器未启动"),
    PARAMETERERROR(20009,"请求参数错误"),
    UNPOWER(20010,"请求参数错误");

    private Integer code;  // 响应码
    private String description;  // 响应码描述

}
